<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



Auth::routes();

Route::group(['middleware'=>'auth'],function () {

    Route::get('/', 'Welcome\IndexController@index');
    Route::get('/logout', 'Auth\LoginController@logout');

    Route::get('my','Welcome\Mycontroller@index');
    Route::get('password','Welcome\Mycontroller@passwordFrm');


    //标准资源路由组
    Route::group(['namespace' => 'Resources'], function () {
        //资源标准路由
        Route::resources([
            'article' => 'ArticleController',
            'admin' => 'AdminController',
        ]);

    });
});
Route::group(['namespace' => 'Component'],function(){
    //附件上传
   Route::post('/uploader','UploadController@uploader');
});
